﻿namespace Grove.Cards.Usg
{
	using System.Collections.Generic;
	using System.Linq;
	using Grove.Core;
	using Grove.Core.Ai;
	using Grove.Core.Details.Cards.Effects;
	using Grove.Core.Details.Mana;
	using Grove.Core.Dsl;

	public class RazorvergeThicket : CardsSource
  {
    public override IEnumerable<ICardFactory> GetCards()
    {
      yield return C.Card
        .Named("Razorverge Thicket")
        .Type("Land")
        .InSets("Urza's Saga")
        .Text(
          "Razorverge Thicket enters the battlefield tapped unless you control two or fewer other lands.{EOL}{T}: Add {G} or {W} to your mana pool.")
        .FlavorText(
          "Where the Razor Fields beat back the Tangle, the crowded thicket yields to bright scimitars of grass.")
        .Timing(Timings.Lands())
        .Abilities(
          C.ManaAbility(new ManaUnit(ManaColors.Green | ManaColors.White), "{T}: Add {G} or {W} to your mana pool."))
        .Effect<PutIntoPlay>(e => e.PutIntoPlayTapped = e.Controller.Battlefield.Lands.Count() > 2);
    }
  }
}